package com.perdragon.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.perdragon.entity.Job;
import com.perdragon.repository.JobRepository;
import com.perdragon.service.JobService;

@Service
public class JobServiceImpl implements JobService {
	@Autowired
	private JobRepository jobRepository;

	public List<Job> listJob(int startRow) {
		return jobRepository.listJob(startRow);
	}

	public List<Job> listJobStore(int startRow) {
		return jobRepository.listJobStore(startRow);
	}

	public int addJob(Job job) {
		return jobRepository.addJob(job);
	}

	public Job showDetail(int id) {
		return jobRepository.showDetail(id);
	}

	public void delete(int id) {
		jobRepository.delete(id);
	}

	public void toStore(int id) {
		jobRepository.toStore(id);
	}

	public int getRowNum() {
		return jobRepository.getRowNum();
	}

	public int getRowNumStore() {
		return jobRepository.getRowNumStore();
	}
}
